package com.xingchi.tornado.storage.core.model.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * 分片上传结果
 *
 * @author xingchi
 * @date 2024/5/19
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FileChunkUploadVO {

    /**
     * 是否跳过上传(已上传的分片可以跳过)
     */
    private boolean skipUpload;

    /**
     * 已上传分片列表
     */
    private Set<Integer> uploaded;

    /**
     * 是否所有分片已上传完成
     */
    private boolean isFinished;

}
